package com.py.pythink.controller;

import com.py.pythink.bo.UserVedioAddBo;
import com.py.pythink.service.intf.UserVedioService;
import com.py.pythink.vo.R;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/uservideo/")
@CrossOrigin
@Api(value = "",tags = "用户上传的相关操作")
public class UserVideoController {
    @Autowired
    private UserVedioService userVedioService;

    @PostMapping("save.do")
    public R upload(UserVedioAddBo userVedioAddBo){
        return userVedioService.save(userVedioAddBo);
    }

    @GetMapping("detail.do")
    public R detail(int uid){
        return userVedioService.detail(uid);
    }
}
